import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 沈明月
 * Date: 2022-11-02
 * Time: 10:04
 */
public class TestOne {
//判断一个年份是否是闰年：
//何为闰年：
//普通闰年：年份是4的倍数，且不是100的倍数
//世纪闰年：年份是400的倍数
    public static void main1(String[] args) {
        //输入一个年份：
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        if(year%400 == 0){
            System.out.println(year+"是闰年！");
        }else if(year%4 == 0 && year != 0){
            System.out.println(year+"是闰年！");
        }else{
            System.out.println(year+"不是闰年！");
        }
    }
    public static void main2(String[] args) {
        //输入一个年份：
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();

        if(year % 400 == 0 || (year % 100 != 0 && year % 4 == 0)) {
            System.out.println(year+"是闰年！");
        }else{
            System.out.println(year+"不是闰年！");
        }
    }
}
